import axios from "axios";

const myAxios = axios.create({
    baseURL: '',
    timeout: 3000
});

myAxios.interceptors.request.use(config => {
    return config
}, err => {
    Promise.reject(err)
})

myAxios.interceptors.response.use(res => {
    return Promise.resolve(res)
}, err => {
    Promise.reject(err)
});

export default myAxios;